import { queryOrderInfoList } from '../../services/order'

Component({
  options: {
    multipleSlots: true
  },
  /**
   * 组件的属性列表
   */
  properties: {
    nowStep: {
      type: String,
      value: "all",
    },
    orderList:{
      type: Array,
      value: [],
    }
  },

  created(){
    console.log("order list created")
  },

  attached(){
    console.log("order list attached")
  },

  detached(){
    console.log("order list detached")
  },

  pageLifetimes: {
    show: function() {
      // 页面被展示
      console.log("order list show")
    },
    hide: function() {
      // 页面被隐藏
      console.log("order list hide")
    },
  },

  data: {
    message:'委托人因典当需要，委托我方对该车辆进行技术状况测评，请及时处理!',
    // orderList:[],
    status:"",
  },

  /**
   * 组件的方法列表
   */
  methods: {
    // 查看详情
    handleClickDetail(event){
      let currentItem = event.currentTarget.dataset.currentitem
      this.triggerEvent("viewDetailAction", currentItem)
    },
    
    handleTakeOrder(event){
      console.log("event2343>>>",event)

      let currentItem = event.detail
      this.triggerEvent("takeOrderAction", currentItem)
    }

  }
})
